package com.design.pattern.template;

public class Coffee extends CaffeineBeverage {
    boolean condiments = true;

    void brew() {
        System.out.println("用沸水冲泡咖啡");
    }

    void addCondiments() {
        System.out.println("加入牛奶和糖");
    }

    boolean customerWantsCondiments() {
        return condiments;
    }

    public void setCondiments(boolean condiments) {
        this.condiments = condiments;
    }
}